#ifndef __APP_H__
#define __APP_H__


#include <memory>

#include "player.h"

class App
{
private:
    /* data */
public:
    App();
    ~App();

    const App operator=(const App&) = delete;
    App(const App&) = delete;

    static App& GetIns();

    void InitMainPlayer(int player_id, int socket_fd);
    std::shared_ptr<Player> GetMainPlayer();

public:
    std::shared_ptr<Player> main_player_;
};


#endif  // __APP_H__